package com.carrent.demo.Mapper;

import com.carrent.demo.Domain.Contract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ContractMapper {


    List<Contract> getPage(@Param("start") Integer start, @Param("pageSize") Integer pageSize, @Param("name") String name);

    Integer getCount(@Param("name") String name);

    Boolean deleteContract(@Param("id") String id);

    Boolean addContract(@Param("contract") Contract contract);

    Boolean deleteUser(@Param("id") Integer id);

    Boolean deleteUserCompliter(@Param("id") Integer id);

}
